import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 图片懒加载
import VueLazyload from 'vue-lazyload'
// 图片懒加载配置
const loadimage = require('@/assets/images/loading.gif')
const errorimage = require('@/assets/images/error.jpg')
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: errorimage,
  loading: loadimage,
  attempt: 1
})
// 重置样式
import './assets/css/reset.scss'
// postcss-pxtorem移动端适配rem 配置文件在postcss.config.js中
import './assets/js/rem.js'
// vant
import './plugins/vant.js'
// filter
import filter from './filter'
//全局注册过滤器
Object.keys(filter).forEach(key => Vue.filter(key, filter[key]))

Vue.config.productionTip = false
new Vue({
  router,
	store,
  render: h => h(App)
}).$mount('#app')
